home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / code / r3rserv.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  1.5 KB  |  64 lines

  1.  
  2. // JavaScript wrapper for r3rserv.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_RSERVER_H = 1;
  7. include("real/code/r3ttag.js")
  8.  
  9.  
  10. var R3CLID_RSERVER = 1701;
  11.  
  12.  
  13.  
  14.  
  15. R3RSERVA_Disabled = 1701500;
  16. function SetR3RSERVA_Disabled(value) {
  17.   R3Set(this.r3obj, R3RSERVA_Disabled, value, R3TID_BOOLEAN, 0); 
  18. }
  19.  
  20. function GetR3RSERVA_Disabled() {
  21.   return R3Get(this.r3obj, R3RSERVA_Disabled, R3TID_BOOLEAN, 0); 
  22. }
  23.  
  24. R3RSERVA_Memory = 1701501;
  25. function SetR3RSERVA_Memory(value) {
  26.   R3Set(this.r3obj, R3RSERVA_Memory, value, R3TID_INTEGER, 0); 
  27. }
  28.  
  29. function GetR3RSERVA_Memory() {
  30.   return R3Get(this.r3obj, R3RSERVA_Memory, R3TID_INTEGER, 0); 
  31. }
  32.  
  33. R3RSERVA_Status = 1701502;
  34. function SetR3RSERVA_Status(value) {
  35.   R3Set(this.r3obj, R3RSERVA_Status, value, R3TID_INTEGER, 0); 
  36. }
  37.  
  38. function GetR3RSERVA_Status() {
  39.   return R3Get(this.r3obj, R3RSERVA_Status, R3TID_INTEGER, 0); 
  40. }
  41.  
  42. var R3ST_CANNOTCONNECT = 0;
  43. var R3ST_OK = 1;
  44. var R3ST_VERSION = 2;
  45. var R3ST_SOCKETERROR = 3;
  46. var R3ST_UNDEFINED = 4;
  47.  
  48.  
  49. function r3Rserver () { 
  50.    this.base = r3God;
  51.    if(arguments.length) {
  52.       this.base(R3CLID_RSERVER, arguments);
  53.    }
  54.    // Attributes
  55.    this.GetDisabled=GetR3RSERVA_Disabled;
  56.    this.SetDisabled=SetR3RSERVA_Disabled;
  57.    this.GetMemory=GetR3RSERVA_Memory;
  58.    this.SetMemory=SetR3RSERVA_Memory;
  59.    this.GetStatus=GetR3RSERVA_Status;
  60.    this.SetStatus=SetR3RSERVA_Status;
  61. }
  62.  
  63. r3Rserver.prototype=new r3Model;
  64. // r3rserv.h_H